<template>
	<view class='index-wrapper'>
		<view class='title acea-row row-between-wrapper'>
			<view class='text'>
				<view class='name line1'>{{titleInfo[0].val}}</view>
				<view class='line1'>{{titleInfo[1].val}}</view>
			</view>
			<view class='more'>
				更多
				<text class='iconfont icon-jiantou'></text>
			</view>
		</view>
		<view class='boutique'>
			<swiper autoplay="true" indicator-dots="true" :circular="circular" :interval="interval" :duration="duration"
				indicator-color="rgba(252,65,65,0.3)" indicator-active-color="#fc4141">
				<block v-for="(item,index) in bastBanner">
					<swiper-item :key='index'>
						<view style='width:100%;height:100%;' hover-class='none' @click="gopage(item.info[0].value)">
							<image :src="item.img" class="slide-image" />
						</view>
					</swiper-item>
				</block>
			</swiper>
		</view>
		<view style="height: 600rpx;"></view>
	</view>
</template>

<script>
	export default {
		name: 'g_recommend',
		props: {
			dataConfig: {
				type: Object,
				default: () => {}
			},
			activeName: {
				type: String,
				default: ''
			}
		},
		created() {
			if (this.dataConfig.imgList) {
				this.bastBanner = this.dataConfig.imgList.list
			}
			if (this.dataConfig.titleInfo) {
				this.titleInfo = this.dataConfig.titleInfo.list
			}
		},
		data() {
			return {
				titleInfo: [],
				circular: true,
				interval: 3000,
				duration: 500,
			}
		}
	}
</script>

<style>
	.boutique {
		width: 690rpx;
		height: 300rpx;
		margin: 28rpx auto 0 auto;
	}

	.boutique swiper {
		width: 100%;
		height: 100%;
		position: relative;
	}

	.boutique image {
		width: 100%;
		height: 260rpx;
	}

	.boutique .wx-swiper-dot {
		width: 7rpx;
		height: 7rpx;
		border-radius: 50%;
	}

	.boutique .wx-swiper-dot-active {
		width: 20rpx;
		border-radius: 5rpx;
	}

	.boutique .wx-swiper-dots.wx-swiper-dots-horizontal {
		margin-bottom: -8rpx;
	}

	.empty-img {
		width: 100%;
		height: 375rpx;
		line-height: 375rpx;
		background: #ccc;
		font-size: 40rpx;
		color: #666;
		text-align: center;
	}
</style>
